package com.koron.order.patrol.mapper;

import com.koron.order.patrol.bean.po.PatrolPointPo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 巡视工单-巡视点从表(PatrolPoint)表数据库访问层
 *
 * @author zhouj
 * @since 2021-10-26 15:27:32
 */
public interface PatrolPointMapper {

    int insertOrUpdate(PatrolPointPo patrolPoint);

    int insertOrUpdateBatch(@Param("list") List<PatrolPointPo> patrolPointList);

    int insert(PatrolPointPo patrolPoint);

    int insertBatch(@Param("list") List<PatrolPointPo> patrolPointList);

    int update(PatrolPointPo patrolPoint);

    int deleteById(String id);

    PatrolPointPo queryById(String id);

    List<PatrolPointPo> queryByIds(@Param("ids") List<String> ids);

    List<PatrolPointPo> queryList(PatrolPointPo patrolPoint);

    int deleteByPatrolIds(@Param("list") List<String> patrolIds);
}